package com.example.zzk;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends BaseActivity implements View.OnClickListener{
    /**
     * 我要直播
     */
    private Button romm;
    /**
     * 直播间进入
     */
    private Button romms;
    

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }
    private void initView() {
        romm = (Button) findViewById(R.id.romm);
        romm.setOnClickListener((View.OnClickListener) this);
        romms = (Button) findViewById(R.id.romms);
        romms.setOnClickListener((View.OnClickListener) this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.romm:
                startActivity(new Intent(MainActivity.this,RoomActivity.class));

                break;
            case R.id.romms:
                startActivity(new Intent(MainActivity.this,RoosActivity.class));
                break;
        }
    }
}